package com.view.components.menu
{
	import org.puremvc.as3.interfaces.IMediator;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.mediator.Mediator;
	
	public class MenuMediator extends Mediator implements IMediator
	{
		public static const NAME:String = 'MenuMediator';
		public function MenuMediator(viewComponent:Object)
		{
			super(NAME,viewComponent);
		}
		private function get menuUI():MenuUI
		{
		    return viewComponent as MenuUI;
		}
		override public function listNotificationInterests():Array
		{
			return [
					//ApplicationFacade.CANCEL_SELECTED,
					//ApplicationFacade.USER_UPDATED
				   ];
		}
		
		override public function handleNotification( note:INotification ):void
		{
			/* switch ( note.getName() )
			{
				case ApplicationFacade.CANCEL_SELECTED:
					userList.deSelect();
					break;
					
				case ApplicationFacade.USER_UPDATED:
					userList.deSelect();
					break;
					
			} */
		}

	}
}